﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="admin_tour_program_Edit" %>

<%= StyleInclude("style.css") %>

<div class="frombox datagrid-body" style="padding-bottom:5px;">
    <form id="program-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">节目名称</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Name" class="easyui-textbox" data-options="required:true" style="width:236px;" value="<%= model.Name %>" />
                    </div>
                </td>
                <td class="rth">
                    <div class="datagrid-cell">节目时间</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Time" class="easyui-datebox" style="width:236px;" value="<%= model.Time %>" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">节目图片</div>
                </td>
                <td class="td" colspan="3">
                    <div class="datagrid-cell">
                        <div id="program-imgbox" class="program-imgbox fn-clear">
                            <%= ProgramImgs(model.ID) %>
                        </div>
                        <div>
                            <%= ToolButton("icon-graphy", "上传图片", "Program.Upload")
                            + ToolButton("icon-chartline", "批量上传", "Program.Batch")
                            + ToolButton("icon-pictures", "设置封面", "Program.Front")
                            + ToolButton("icon-left", "图片前移", "Program.ImgPrev")
                            + ToolButton("icon-right", "图片后移", "Program.ImgNext")
                            + ToolButton("icon-no", "删除图片", "Program.ImgDelete")
                            + ToolButton("icon-cancel", "全部删除", "Program.ImgClear") %>
                        </div>
                        <input id="program-images" name="Images" type="hidden" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="text" colspan="4">
                    <div class="datagrid-cell">
                        <textarea id="program-content" name="Content"><%= model.Content %></textarea>
                    </div>
                </td>
            </tr>
        </table>
        <input name="ID" type="hidden" value="<%= model.ID %>" />
        <input name="InsertTime" type="hidden" value="<%= model.InsertTime %>" />
        <input name="UpdateTime" type="hidden" value="<%= model.UpdateTime %>" />
    </form>
</div>
